// pages/member/goodList/list/index.js
import {
    request
  } from '../../../../request';
Page({

    /**
     * 页面的初始数据
     */
    data: {
        goodList: [],
    },
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
        this.initData();
    },
    initData() {
        request("/operation/commodity/list", "GET").then(resopnse => {
          this.setData({
            goodList: resopnse.rows
          });
        })
      },
})